using System;
 
namespace HZY.Models
{
	using HZY.Models.Enums;
	using System.ComponentModel.DataAnnotations;
	using System.ComponentModel.DataAnnotations.Schema;
	using HZY.Toolkits;
	[Table(nameof(Customer))]
	public class Customer
	{
		[Key]
		public Guid Customer_ID { get; set; } = Guid.Empty;
		/// <summary>
		/// 客户名称
		/// </summary>
		[Required(ErrorMessage = "客户名称不能为空!")]
		public string Customer_Name { get; set; }
		/// <summary>
		/// 客户编码
		/// </summary>
		[Required(ErrorMessage = "客户编码不能为空!")]
		public string Customer_Code { get; set; } = RandomNumber.GetRandom2();
		/// <summary>
		/// 手机
		/// </summary>
		public string Customer_Phone { get; set; }
		/// <summary>
		/// 电话 
		/// </summary>
		public string Customer_Telephone { get; set; }
		/// <summary>
		/// 银行账号 
		/// </summary>
		public Guid Costomer_BankAccountID { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
		public DateTime? Costomer_CreateTime { get; set; }
		/// <summary>
		/// 是否禁用
		/// </summary>
		public ERole_IsDelete Costomer_Disable { get; set; } = ERole_IsDelete.否;
		/// <summary>
		/// 是否删除 
		/// </summary>
		public ERole_IsDelete Costomer_IsDelete { get; set; } = ERole_IsDelete.否;
		/// <summary>
		/// 地址 
		/// </summary>
		[Required(ErrorMessage = "客户地址不能为空!")]
		public string  Costomer_Address { get; set; } 
		

	}
}